// 导出属于员工的路由规则
import Layout from '@/layout'

export default {
  path: '/exam', // 路径
  name: 'exam', // 给路由规则加一个name
  component: Layout, // 组件
  meta: {
    title: '考试管理', icon: 'form'
  },
  redirect: '/exam/question',
  children: [
    {
      path: '/exam/question',
      component: () => import('@/views/exam/components/question'),
      meta: {
        title: '题库信息', icon: 'form'
      }
    },
    {
      path: '/exam/paper',
      component: () => import('@/views/exam/components/paper'),
      meta: {
        title: '试卷信息', icon: 'form'
      }
    },
    {
      path: '/exam/exam',
      component: () => import('@/views/exam/components/exam'),
      meta: {
        title: '考试信息', icon: 'form'
      }
    },
  ]
}

